package com.tianlu.store.entity;
 
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.tianlu.store.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.data.annotation.Transient;

import java.util.List;

/**
 * (SysRegion)实体类
 *
 * @author 梁东烂
 * @since 2023-04-28 18:17:35
 */
@Data
@ApiModel(value = "实体类", description = "实体类")
@TableName("t_sys_region")
public class SysRegion extends BaseEntity<SysRegion> {
    private static final long serialVersionUID = 756616991996409617L;
    /**
     * 父级id
     */   
    @ApiModelProperty(value = "父级id")
    private Long pid;
    /**
     * 名称
     */   
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @Transient
    @TableField(exist = false)
    private List<SysRegion> children;
}
